﻿<shared:WindowBase x:Class="HP.Cachalote.WPF.DialogWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:shared="clr-namespace:HP.Cachalote.WPF.Shared"
        x:Name="Window"
        Title="DialogWindow" 
        WindowStartupLocation="CenterScreen"
        Background="Transparent"
        WindowStyle="None" 
        AllowsTransparency="True"
        Height="90" Width="280">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Skins/StoryBoards/SharedStoryBoard.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Grid x:Name="MainGrid" Background="#d6e6f4">
        <Grid.RenderTransform>
            <TransformGroup>
                <ScaleTransform/>
                <SkewTransform/>
                <RotateTransform/>
                <TranslateTransform/>
            </TransformGroup>
        </Grid.RenderTransform>
        <Grid.RowDefinitions>
            <!-- Message -->
            <RowDefinition Height="Auto" />
            <!-- Yes & No buttons -->
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" Margin="10,10,0,0">
            <Image Source="/Resources/Images/Info.png" Width="32" Margin="0,0,10,0" />
            <TextBlock x:Name="TextBlockMessage" VerticalAlignment="Center" TextWrapping="Wrap" />
        </StackPanel>
        <StackPanel Grid.Row="1" Margin="0,0,0,0" Orientation="Horizontal" HorizontalAlignment="Center">
            <Button x:Name="BtnYes" Margin="0,0,10,0" Width="70" Height="40" Content="Yes" IsDefault="True" Click="BtnYes_Click" />
            <Button x:Name="BtnNo" Width="70" Height="40" Content="No" IsCancel="True" Click="BtnNo_Click"  />
        </StackPanel>
    </Grid>
</shared:WindowBase>
